/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package GamePlay;

import javax.microedition.lcdui.Display;
import javax.microedition.midlet.*;

/**
 * @author ThanhTrung
 */
public class MIDletGame extends MIDlet {
    static CanvasGame canvas;
    public MIDletGame(){
        this.canvas = new CanvasGame(this);
    }
    public void startApp() {
       Display.getDisplay(this).setCurrent(canvas);
    }

    public void pauseApp() {

    }

    public void destroyApp(boolean unconditional) {
        notifyDestroyed();
        exit();
    }
    public void destroyApp(){
        notifyDestroyed();
        exit();
    }
    public void exit(){
        canvas = null;
        notifyDestroyed();
    }
}
